package com.coin.exchange.otcbtc.vo;

import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel
public class CreateOrderRequestVO {

	@NotNull(message="api_key required")
	@ApiModelProperty(value = "Access key", required = true)
	private String api_key;

	@NotNull(message="secret_key required")
	@ApiModelProperty(value = "Secret key", required = true)
	private String secret_key;

	@NotNull(message="market required")
	@ApiModelProperty(value = "Unique market id", required = true)
	private String market;

	@NotNull(message="side required(‘sell’ or 'buy’)")
	@ApiModelProperty(value = "Either ‘sell’ or 'buy’", required = true)
	private String side;

	@NotNull(message="volume required")
	@ApiModelProperty(value = "The amount user want to sell/buy", required = true)
	private Double volume;
	
	@ApiModelProperty(value = "Price for each unit")
	private Double price;
	
	@ApiModelProperty(value = "Type of order, now only 'limit'", hidden = true)
	private String ord_type = "limit";

	public String getApi_key() {
		return api_key;
	}

	public void setApi_key(String api_key) {
		this.api_key = api_key;
	}

	public String getSecret_key() {
		return secret_key;
	}

	public void setSecret_key(String secret_key) {
		this.secret_key = secret_key;
	}

	public String getMarket() {
		return market;
	}

	public void setMarket(String market) {
		this.market = market;
	}

	public String getSide() {
		return side;
	}

	public void setSide(String side) {
		this.side = side;
	}

	public Double getVolume() {
		return volume;
	}

	public void setVolume(Double volume) {
		this.volume = volume;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public String getOrd_type() {
		return ord_type;
	}

	public void setOrd_type(String ord_type) {
		this.ord_type = ord_type;
	}
	
}
